package com.wgh.product.entity.shop;

import com.wgh.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商品关联实体类
 * 
 * @author AI Shop
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("shop_product_relation")
public class ProductRelation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主商品ID
     */
    private Long mainProductId;

    /**
     * 关联商品ID
     */
    private Long relatedProductId;

    /**
     * 关联类型：0-搭配推荐，1-相关商品，2-组合商品
     */
    private Integer relationType;

    /**
     * 排序
     */
    private Integer sort;
}